package cn.lg.soar.mvc.aspect.log.model;

import org.springframework.expression.EvaluationContext;
import org.springframework.expression.Expression;

/**
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
public class ElTextConfig implements Config {

        private final Expression expression;

        public ElTextConfig(Expression expression) {
            this.expression = expression;
        }

        @Override
        public Object getData(EvaluationContext context) {
            return this.expression.getValue(context, Object.class);
        }

    @Override
    public Object getDataId(EvaluationContext context) {
        return null;
    }

}
